﻿<controls:ChildWindow x:Class="Candy.PhylogenyEditWindow"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           Width="461" Height="600" 
           Title="PhylogenyEditWindow" Style="{StaticResource ChildWindowStyleChromeless}">
    <Grid x:Name="LayoutRoot" Margin="2" Background="{StaticResource ControlBackgroundDark}">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <Button x:Name="CancelButton" Content="Cancel" Command="{Binding CancelEdit}" Width="75" HorizontalAlignment="Right" Margin="0,8,8,8" Grid.Row="9" />
        <Button x:Name="OKButton" Content="OK" Command="{Binding Save}" Width="75" HorizontalAlignment="Right" Margin="0,8,90,8" Grid.Row="9" VerticalAlignment="Bottom" />
        <TextBlock TextWrapping="Wrap" Text="Phylogeny Edit" FontSize="{StaticResource HeaderFontSize}" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="8,4,0,4"/>
        <TextBlock HorizontalAlignment="Left" Margin="8,8,0,4" TextWrapping="Wrap" Text="Name" VerticalAlignment="Center" Grid.Row="1"/>
        <TextBox Margin="8,4" Grid.Row="2" TextWrapping="Wrap" Text="{Binding Entity.Name, Mode=TwoWay, NotifyOnValidationError=True, ValidatesOnDataErrors=True, ValidatesOnExceptions=True}" VerticalAlignment="Center" Height="24"/>
        <TextBlock HorizontalAlignment="Left" Margin="8,4,0,4" TextWrapping="Wrap" Text="Description" VerticalAlignment="Center" Grid.Row="3"/>
        <TextBox Margin="8,4" Grid.Row="4" TextWrapping="Wrap" Text="{Binding Entity.Description, Mode=TwoWay, NotifyOnValidationError=True, ValidatesOnDataErrors=True, ValidatesOnExceptions=True}" AcceptsReturn="True"/>
        <TextBlock HorizontalAlignment="Left" Margin="8,4" TextWrapping="Wrap" Text="Alignment" VerticalAlignment="Center" Grid.Row="5"/>
        <TextBlock HorizontalAlignment="Left" Margin="8,4" TextWrapping="Wrap" Text="Tree" VerticalAlignment="Center" Grid.Row="7"/>
        <TextBox Margin="8,4" Grid.Row="6" TextWrapping="Wrap" Text="{Binding Entity.Alignment, Mode=TwoWay, NotifyOnValidationError=True, ValidatesOnDataErrors=True, ValidatesOnExceptions=True}" AcceptsReturn="True"/>
        <TextBox Margin="8,4" Grid.Row="8" TextWrapping="Wrap" Text="{Binding Entity.Tree, Mode=TwoWay, NotifyOnValidationError=True, ValidatesOnDataErrors=True, ValidatesOnExceptions=True}" AcceptsReturn="True"/>
    </Grid>
</controls:ChildWindow>